From: Jasper St. Pierre Date: Wed, 15 Aug 2012 17:42:31 +0000 (-0400) Subject: messageTray: Grab the key focus when entering from the keybinding X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~6139 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=c668d16a000dd1404ac25b85dd763b14bbfbd49d;p=gnome-shell.git messageTray: Grab the key focus when entering from the keybinding --- diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js index 5f7506978..8d14d1f49 100644 --- a/js/ui/messageTray.js +++ b/js/ui/messageTray.js @@ -1423,7 +1423,7 @@ const MessageTray = new Lang.Class({ global.display.add_keybinding('toggle-message-tray', new Gio.Settings({ schema: SHELL_KEYBINDINGS_SCHEMA }), Meta.KeyBindingFlags.NONE, - Lang.bind(this, this.toggle)); + Lang.bind(this, this.toggleAndNavigate)); this._summaryItems = []; this._chatSummaryItemsCount = 0; @@ -1575,6 +1575,13 @@ const MessageTray = new Lang.Class({ this._updateState(); }, + toggleAndNavigate: function() { + // Grab the key focus so that GrabHelper knows + // that we have the key grab. + this._summary.grab_key_focus(); + this.toggle(); + }, + hide: function() { this._traySummoned = false; this.actor.set_hover(false);